<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //循环几行
        for (let i = 1; i <= 9; i++) {
            //管一行
            for (let j = 1; j <= i ; j++) {
                // 为了对齐输出,当积数小于10加两个空格,否则加一个空格
                document.write(i + '*' + j + '=' + (i*j))
                document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
            }
            document.write("<br/>")
        }
    </script>
</head>
<body>

</body>
</html>